package com.longcai.service.clyjuser;

import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.bean.ApiResult;
import com.longcai.bean.PageHelper;
import com.longcai.entity.customer.ClyjUserAgent;
import com.longcai.page.table.PageTableResponse;

/**
 * <p>
 * 用户代理表 服务类
 * </p>
 *
 * @author M
 * @since 2019-05-10
 */
public interface ClyjUserAgentService extends IService<ClyjUserAgent> {

    /**
     * 获取代理商列表
     *
     * @param clyjUserAgent
     * @param pageHelper
     * @return
     */
    PageTableResponse agentList(ClyjUserAgent clyjUserAgent, PageHelper pageHelper);

    /**
     * 根据id获取代理商信息
     *
     * @param id
     * @return
     */
    ApiResult getById(String id);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    ApiResult delById(String id);

    /**
     * 新增代理
     *
     * @param clyjUserAgent
     * @return
     */
    ApiResult saveagent(ClyjUserAgent clyjUserAgent);

    /**
     * 修改代理
     *
     * @param clyjUserAgent
     * @return
     */
    ApiResult updatebyagent(ClyjUserAgent clyjUserAgent);
}
